home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Delphi Borland Form
(archive/borlandDelphiForm).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Delphi Borland Form (archive/borlandDelphiForm)
| magic
| Supported |
100%
| file
| Delphi compiled form 'TScriptModel'
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Borland Form (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 54 50 46 30 0c 54 53 63 | 72 69 70 74 4d 6f 64 65 |TPF0.TSc|riptMode|
|00000010| 6c 00 0a 4f 4d 44 61 74 | 61 54 79 70 65 07 08 64 |l..OMDat|aType..d|
|00000020| 74 53 79 73 74 65 6d 0a | 52 65 73 75 6c 74 43 6f |tSystem.|ResultCo|
|00000030| 64 65 02 00 0c 53 63 72 | 69 70 74 73 2e 47 55 49 |de...Scr|ipts.GUI|
|00000040| 44 06 26 7b 31 43 35 46 | 33 38 36 45 2d 34 30 46 |D.&{1C5F|386E-40F|
|00000050| 43 2d 34 33 39 32 2d 42 | 34 37 44 2d 43 42 46 35 |C-4392-B|47D-CBF5|
|00000060| 34 43 43 45 44 33 45 36 | 7d 07 53 63 72 69 70 74 |4CCED3E6|}.Script|
|00000070| 73 0e 01 04 47 55 49 44 | 06 26 7b 43 31 32 37 36 |s...GUID|.&{C1276|
|00000080| 38 44 39 2d 44 35 33 31 | 2d 34 42 37 31 2d 41 39 |8D9-D531|-4B71-A9|
|00000090| 31 30 2d 36 44 30 38 38 | 37 38 31 44 30 36 44 7d |10-6D088|781D06D}|
|000000a0| 05 53 74 61 74 65 07 0a | 6f 6d 49 6e 73 65 72 74 |.State..|omInsert|
|000000b0| 65 64 0a 53 63 72 69 70 | 74 4e 61 6d 65 06 13 53 |ed.Scrip|tName..S|
|000000c0| 65 61 72 63 68 20 62 79 | 20 46 69 6c 65 20 4e 61 |earch by| File Na|
|000000d0| 6d 65 06 41 75 74 68 6f | 72 06 11 48 42 20 76 61 |me.Autho|r..HB va|
|000000e0| 6e 20 5a 77 69 65 74 65 | 72 69 6e 67 12 41 75 74 |n Zwiete|ring.Aut|
|000000f0| 68 6f 72 49 6e 66 6f 2e | 53 74 72 69 6e 67 73 01 |horInfo.|Strings.|
|00000100| 06 17 68 74 74 70 3a 2f | 2f 77 77 77 2e 69 64 69 |..http:/|/www.idi|
|00000110| 6d 61 67 65 72 2e 63 6f | 6d 00 10 53 68 6f 72 74 |mager.co|m..Short|
|00000120| 44 65 73 63 72 69 70 74 | 69 6f 6e 06 41 54 68 69 |Descript|ion.AThi|
|00000130| 73 20 73 65 61 72 63 68 | 20 73 63 72 69 70 74 20 |s search| script |
|00000140| 61 6c 6c 6f 77 73 20 79 | 6f 75 20 74 6f 20 73 65 |allows y|ou to se|
|00000150| 61 72 63 68 20 66 6f 72 | 20 61 20 70 61 72 74 20 |arch for| a part |
|00000160| 6f 66 20 61 20 66 69 6c | 65 20 6e 61 6d 65 0a 49 |of a fil|e name.I|
|00000170| 74 65 6d 73 2e 47 55 49 | 44 06 26 7b 42 31 44 30 |tems.GUI|D.&{B1D0|
|00000180| 38 39 31 46 2d 36 37 46 | 31 2d 34 44 43 45 2d 39 |891F-67F|1-4DCE-9|
|00000190| 46 32 37 2d 39 38 34 32 | 44 44 45 44 37 46 33 41 |F27-9842|DDED7F3A|
|000001a0| 7d 05 49 74 65 6d 73 0e | 01 04 47 55 49 44 06 26 |}.Items.|..GUID.&|
|000001b0| 7b 38 39 39 38 43 43 41 | 45 2d 44 30 44 34 2d 34 |{8998CCA|E-D0D4-4|
|000001c0| 39 31 45 2d 39 30 46 34 | 2d 41 30 39 38 30 32 32 |91E-90F4|-A098022|
|000001d0| 43 34 46 41 45 7d 05 53 | 74 61 74 65 07 0a 6f 6d |C4FAE}.S|tate..om|
|000001e0| 49 6e 73 65 72 74 65 64 | 08 49 74 65 6d 4e 61 6d |Inserted|.ItemNam|
|000001f0| 65 06 13 53 65 61 72 63 | 68 20 62 79 20 46 69 6c |e..Searc|h by Fil|
|00000200| 65 20 4e 61 6d 65 12 53 | 6f 75 72 63 65 43 6f 64 |e Name.S|ourceCod|
|00000210| 65 2e 53 74 72 69 6e 67 | 73 01 06 48 70 72 6f 63 |e.String|s..Hproc|
|00000220| 65 64 75 72 65 20 49 6e | 69 74 69 61 6c 69 7a 65 |edure In|itialize|
|00000230| 3b 20 20 20 20 2f 2f 20 | 75 73 65 20 74 68 69 73 |; // |use this|
|00000240| 20 70 72 6f 63 65 64 75 | 72 65 20 66 6f 72 20 67 | procedu|re for g|
|00000250| 6c 6f 62 61 6c 20 69 6e | 69 74 69 61 6c 69 7a 61 |lobal in|itializa|
|00000260| 74 69 6f 6e 06 05 62 65 | 67 69 6e 06 26 20 20 4d |tion..be|gin.& M|
|00000270| 61 69 6e 46 6f 72 6d 2e | 50 6f 73 69 74 69 6f 6e |ainForm.|Position|
|00000280| 20 3a 3d 20 70 6f 53 63 | 72 65 65 6e 43 65 6e 74 | := poSc|reenCent|
|00000290| 65 72 3b 12 00 00 00 00 | 06 6a 20 20 6d 6d 46 69 |er;.....|.j mmFi|
|000002a0| 6c 65 4e 61 6d 65 50 61 | 72 74 2e 4c 69 6e 65 73 |leNamePa|rt.Lines|
|000002b0| 2e 54 65 78 74 20 3a 3d | 20 52 65 61 64 46 72 6f |.Text :=| ReadFro|
|000002c0| 6d 52 65 67 69 73 74 72 | 79 20 28 27 53 63 72 69 |mRegistr|y ('Scri|
|000002d0| 70 74 73 27 2c 20 27 53 | 65 61 72 63 68 46 69 6c |pts', 'S|earchFil|
|000002e0| 65 5c 50 61 72 74 27 2c | 20 6d 6d 46 69 6c 65 4e |e\Part',| mmFileN|
|000002f0| 61 6d 65 50 61 72 74 2e | 4c 69 6e 65 73 2e 54 65 |amePart.|Lines.Te|
|00000300| 78 74 29 3b 06 6e 20 20 | 63 62 49 6e 63 6c 75 64 |xt);.n |cbInclud|
|00000310| 65 56 65 72 73 69 6f 6e | 73 2e 43 68 65 63 6b 65 |eVersion|s.Checke|
|00000320| 64 20 3a 3d 20 52 65 61 | 64 46 72 6f 6d 52 65 67 |d := Rea|dFromReg|
|00000330| 69 73 74 72 79 20 28 27 | 53 63 72 69 70 74 73 27 |istry ('|Scripts'|
|00000340| 2c 20 27 53 65 61 72 63 | 68 46 69 6c 65 5c 56 65 |, 'Searc|hFile\Ve|
|00000350| 72 73 69 6f 6e 73 27 2c | 20 63 62 49 6e 63 6c 75 |rsions',| cbInclu|
|00000360| 64 65 56 65 72 73 69 6f | 6e 73 2e 43 68 65 63 6b |deVersio|ns.Check|
|00000370| 65 64 29 3b 06 69 20 20 | 63 62 41 6c 6c 6f 77 57 |ed);.i |cbAllowW|
|00000380| 69 6c 64 2e 43 68 65 63 | 6b 65 64 20 20 20 20 20 |ild.Chec|ked |
|00000390| 20 20 3a 3d 20 52 65 61 | 64 46 72 6f 6d 52 65 67 | := Rea|dFromReg|
|000003a0| 69 73 74 72 79 20 28 27 | 53 63 72 69 70 74 73 27 |istry ('|Scripts'|
|000003b0| 2c 20 27 53 65 61 72 63 | 68 46 69 6c 65 5c 41 6c |, 'Searc|hFile\Al|
|000003c0| 6c 6f 77 57 69 6c 64 27 | 2c 20 63 62 41 6c 6c 6f |lowWild'|, cbAllo|
|000003d0| 77 57 69 6c 64 2e 43 68 | 65 63 6b 65 64 29 3b 06 |wWild.Ch|ecked);.|
|000003e0| 04 65 6e 64 3b 12 00 00 | 00 00 06 46 70 72 6f 63 |.end;...|...Fproc|
|000003f0| 65 64 75 72 65 20 46 69 | 6e 61 6c 69 7a 65 3b 20 |edure Fi|nalize; |
|00000400| 20 20 20 20 20 2f 2f 20 | 75 73 65 20 74 68 69 73 | // |use this|
|00000410| 20 70 72 6f 63 65 64 75 | 72 65 20 66 6f 72 20 67 | procedu|re for g|
|00000420| 6c 6f 62 61 6c 20 66 69 | 6e 61 6c 69 7a 61 74 69 |lobal fi|nalizati|
|00000430| 6f 6e 06 05 62 65 67 69 | 6e 06 4c 20 20 57 72 69 |on..begi|n.L Wri|
|00000440| 74 65 54 6f 52 65 67 69 | 73 74 72 79 20 28 27 53 |teToRegi|stry ('S|
|00000450| 63 72 69 70 74 73 27 2c | 20 27 53 65 61 72 63 68 |cripts',| 'Search|
|00000460| 46 69 6c 65 5c 50 61 72 | 74 27 2c 20 6d 6d 46 69 |File\Par|t', mmFi|
|00000470| 6c 65 4e 61 6d 65 50 61 | 72 74 2e 4c 69 6e 65 73 |leNamePa|rt.Lines|
|00000480| 2e 54 65 78 74 29 3b 06 | 50 20 20 57 72 69 74 65 |.Text);.|P Write|
|00000490| 54 6f 52 65 67 69 73 74 | 72 79 20 28 27 53 63 72 |ToRegist|ry ('Scr|
|000004a0| 69 70 74 73 27 2c 20 27 | 53 65 61 72 63 68 46 69 |ipts', '|SearchFi|
|000004b0| 6c 65 5c 56 65 72 73 69 | 6f 6e 73 27 2c 20 63 62 |le\Versi|ons', cb|
|000004c0| 49 6e 63 6c 75 64 65 56 | 65 72 73 69 6f 6e 73 2e |IncludeV|ersions.|
|000004d0| 43 68 65 63 6b 65 64 29 | 3b 06 4b 20 20 57 72 69 |Checked)|;.K Wri|
|000004e0| 74 65 54 6f 52 65 67 69 | 73 74 72 79 20 28 27 53 |teToRegi|stry ('S|
|000004f0| 63 72 69 70 74 73 27 2c | 20 27 53 65 61 72 63 68 |cripts',| 'Search|
|00000500| 46 69 6c 65 5c 41 6c 6c | 6f 77 57 69 6c 64 27 2c |File\All|owWild',|
|00000510| 20 63 62 41 6c 6c 6f 77 | 57 69 6c 64 2e 43 68 65 | cbAllow|Wild.Che|
|00000520| 63 6b 65 64 29 3b 06 04 | 65 6e 64 3b 12 00 00 00 |cked);..|end;....|
|00000530| 00 06 31 66 75 6e 63 74 | 69 6f 6e 20 50 72 65 70 |..1funct|ion Prep|
|00000540| 61 72 65 46 6f 72 53 51 | 4c 20 28 41 53 74 72 69 |areForSQ|L (AStri|
|00000550| 6e 67 3a 20 53 74 72 69 | 6e 67 29 3a 20 53 74 72 |ng: Stri|ng): Str|
|00000560| 69 6e 67 3b 06 05 62 65 | 67 69 6e 06 2b 20 20 72 |ing;..be|gin.+ r|
|00000570| 65 73 75 6c 74 20 3a 3d | 20 53 74 72 54 72 61 6e |esult :=| StrTran|
|00000580| 28 41 53 74 72 69 6e 67 | 2c 20 27 27 27 27 2c 20 |(AString|, '''', |
|00000590| 27 27 27 27 27 27 29 3b | 12 00 00 00 00 06 23 20 |'''''');|......# |
|000005a0| 20 69 66 20 28 6e 6f 74 | 20 63 62 41 6c 6c 6f 77 | if (not| cbAllow|
|000005b0| 57 69 6c 64 2e 43 68 65 | 63 6b 65 64 29 20 74 68 |Wild.Che|cked) th|
|000005c0| 65 6e 06 07 20 20 62 65 | 67 69 6e 06 1f 20 20 20 |en.. be|gin.. |
|000005d0| 20 69 66 20 43 61 74 61 | 6c 6f 67 2e 49 73 53 51 | if Cata|log.IsSQ|
|000005e0| 4c 53 65 72 76 65 72 20 | 74 68 65 6e 06 09 20 20 |LServer |then.. |
|000005f0| 20 20 62 65 67 69 6e 06 | 2c 20 20 20 20 20 20 72 | begin.|, r|
|00000600| 65 73 75 6c 74 20 3a 3d | 20 53 74 72 54 72 61 6e |esult :=| StrTran|
|00000610| 28 72 65 73 75 6c 74 2c | 20 27 5f 27 2c 20 27 5b |(result,| '_', '[|
|00000620| 5f 5d 27 29 3b 06 2c 20 | 20 20 20 20 20 72 65 73 |_]');., | res|
|00000630| 75 6c 74 20 3a 3d 20 53 | 74 72 54 72 61 6e 28 72 |ult := S|trTran(r|
|00000640| 65 73 75 6c 74 2c 20 27 | 25 27 2c 20 27 5b 25 5d |esult, '|%', '[%]|
|00000650| 27 29 3b 06 2c 20 20 20 | 20 20 20 72 65 73 75 6c |');., | resul|
|00000660| 74 20 3a 3d 20 53 74 72 | 54 72 61 6e 28 72 65 73 |t := Str|Tran(res|
|00000670| 75 6c 74 2c 20 27 5e 27 | 2c 20 27 5b 5e 5d 27 29 |ult, '^'|, '[^]')|
|00000680| 3b 06 07 20 20 20 20 65 | 6e 64 06 08 20 20 20 20 |;.. e|nd.. |
|00000690| 65 6c 73 65 06 09 20 20 | 20 20 62 65 67 69 6e 06 |else.. | begin.|
|000006a0| 2a 20 20 20 20 20 20 72 | 65 73 75 6c 74 20 3a 3d |* r|esult :=|
|000006b0| 20 53 74 72 54 72 61 6e | 28 72 65 73 75 6c 74 2c | StrTran|(result,|
|000006c0| 20 27 5f 27 2c 20 27 5f | 27 29 3b 06 2b 20 20 20 | '_', '_|');.+ |
|000006d0| 20 20 20 72 65 73 75 6c | 74 20 3a 3d 20 53 74 72 | resul|t := Str|
|000006e0| 54 72 61 6e 28 72 65 73 | 75 6c 74 2c 20 27 25 27 |Tran(res|ult, '%'|
|000006f0| 2c 20 27 25 25 27 29 3b | 06 08 20 20 20 20 65 6e |, '%%');|.. en|
|00000700| 64 3b 06 06 20 20 65 6e | 64 3b 06 04 65 6e 64 3b |d;.. en|d;..end;|
|00000710| 12 00 00 00 00 06 24 66 | 75 6e 63 74 69 6f 6e 20 |......$f|unction |
|00000720| 42 75 69 6c 64 46 69 6c | 65 43 6f 6e 64 69 74 69 |BuildFil|eConditi|
|00000730| 6f 6e 3a 20 53 74 72 69 | 6e 67 3b 06 03 76 61 72 |on: Stri|ng;..var|
|00000740| 06 0d 20 20 69 3a 20 49 | 6e 74 65 67 65 72 3b 06 |.. i: I|nteger;.|
|00000750| 05 62 65 67 69 6e 06 0f | 20 20 72 65 73 75 6c 74 |.begin..| result|
|00000760| 20 3a 3d 20 27 27 3b 12 | 00 00 00 00 06 31 20 20 | := '';.|.....1 |
|00000770| 66 6f 72 20 69 20 3a 3d | 20 30 20 74 6f 20 6d 6d |for i :=| 0 to mm|
|00000780| 46 69 6c 65 4e 61 6d 65 | 50 61 72 74 2e 4c 69 6e |FileName|Part.Lin|
|00000790| 65 73 2e 43 6f 75 6e 74 | 20 2d 20 31 20 64 6f 06 |es.Count| - 1 do.|
|000007a0| 07 20 20 62 65 67 69 6e | 06 37 20 20 20 20 69 66 |. begin|.7 if|
|000007b0| 20 54 72 69 6d 28 6d 6d | 46 69 6c 65 4e 61 6d 65 | Trim(mm|FileName|
|000007c0| 50 61 72 74 2e 4c 69 6e | 65 73 2e 53 74 72 69 6e |Part.Lin|es.Strin|
|000007d0| 67 73 5b 69 5d 29 20 3c | 3e 20 27 27 20 74 68 65 |gs[i]) <|> '' the|
|000007e0| 6e 06 8c 20 20 20 20 20 | 20 72 65 73 75 6c 74 20 |n.. | result |
|000007f0| 3a 3d 20 69 69 66 20 28 | 72 65 73 75 6c 74 20 3d |:= iif (|result =|
|00000800| 20 27 27 2c 20 27 27 2c | 20 72 65 73 75 6c 74 20 | '', '',| result |
|00000810| 2b 20 27 20 4f 52 20 27 | 29 20 2b 20 27 46 75 6c |+ ' OR '|) + 'Ful|
|00000820| 6c 46 69 6c 65 4e 61 6d | 65 20 6c 69 6b 65 20 27 |lFileNam|e like '|
|00000830| 27 25 27 20 2b 20 50 72 | 65 70 61 72 65 46 6f 72 |'%' + Pr|epareFor|
|00000840| 53 51 4c 20 28 6d 6d 46 | 69 6c 65 4e 61 6d 65 50 |SQL (mmF|ileNameP|
|00000850| 61 72 74 2e 4c 69 6e 65 | 73 2e 53 74 72 69 6e 67 |art.Line|s.String|
|00000860| 73 5b 69 5d 29 20 2b 20 | 27 25 27 27 20 27 3b 06 |s[i]) + |'%'' ';.|
|00000870| 06 20 20 65 6e 64 3b 06 | 04 65 6e 64 3b 12 00 00 |. end;.|.end;...|
|00000880| 00 00 06 18 70 72 6f 63 | 65 64 75 72 65 20 70 62 |....proc|edure pb|
|00000890| 53 65 61 72 63 68 43 6c | 69 63 6b 3b 06 03 76 61 |SearchCl|ick;..va|
|000008a0| 72 06 1b 20 20 41 43 61 | 74 49 74 65 6d 73 3a 20 |r.. ACa|tItems: |
|000008b0| 54 43 61 74 61 6c 6f 67 | 49 74 65 6d 73 3b 06 1b |TCatalog|Items;..|
|000008c0| 20 20 41 44 6d 3a 20 54 | 44 42 58 4f 4d 43 6c 69 | ADm: T|DBXOMCli|
|000008d0| 65 6e 74 44 61 74 61 53 | 65 74 3b 06 05 62 65 67 |entDataS|et;..beg|
|000008e0| 69 6e 06 1f 20 20 53 63 | 72 65 65 6e 2e 43 75 72 |in.. Sc|reen.Cur|
|000008f0| 73 6f 72 20 3a 3d 20 63 | 72 48 6f 75 72 47 6c 61 |sor := c|rHourGla|
|00000900| 73 73 3b 12 00 00 00 00 | 06 36 20 20 41 43 61 74 |ss;.....|.6 ACat|
|00000910| 49 74 65 6d 73 20 3a 3d | 20 54 43 61 74 61 6c 6f |Items :=| TCatalo|
|00000920| 67 49 74 65 6d 73 2e 43 | 72 65 61 74 65 28 54 43 |gItems.C|reate(TC|
|00000930| 61 74 61 6c 6f 67 49 74 | 65 6d 2c 20 27 27 29 3b |atalogIt|em, '');|
|00000940| 06 05 20 20 74 72 79 06 | 30 20 20 20 20 41 43 61 |.. try.|0 ACa|
|00000950| 74 49 74 65 6d 73 2e 4c | 61 73 74 53 6f 72 74 20 |tItems.L|astSort |
|00000960| 3a 3d 20 53 65 61 72 63 | 68 52 65 73 75 6c 74 2e |:= Searc|hResult.|
|00000970| 4c 61 73 74 53 6f 72 74 | 3b 06 3a 20 20 20 20 41 |LastSort|;.: A|
|00000980| 43 61 74 49 74 65 6d 73 | 2e 4c 61 73 74 53 6f 72 |CatItems|.LastSor|
|00000990| 74 4f 72 64 65 72 20 3a | 3d 20 53 65 61 72 63 68 |tOrder :|= Search|
|000009a0| 52 65 73 75 6c 74 2e 4c | 61 73 74 53 6f 72 74 4f |Result.L|astSortO|
|000009b0| 72 64 65 72 3b 12 00 00 | 00 00 06 25 20 20 20 20 |rder;...|...% |
|000009c0| 69 66 20 63 62 49 6e 63 | 6c 75 64 65 56 65 72 73 |if cbInc|ludeVers|
|000009d0| 69 6f 6e 73 2e 43 68 65 | 63 6b 65 64 20 74 68 65 |ions.Che|cked the|
|000009e0| 6e 06 09 20 20 20 20 62 | 65 67 69 6e 06 20 20 20 |n.. b|egin. |
|000009f0| 20 20 20 20 41 44 6d 20 | 3a 3d 20 43 61 74 61 6c | ADm |:= Catal|
|00000a00| 6f 67 2e 4e 65 77 44 61 | 74 61 53 65 74 3b 12 00 |og.NewDa|taSet;..|
|00000a10| 00 00 00 06 48 20 20 20 | 20 20 20 41 44 6d 2e 43 |....H | ADm.C|
|00000a20| 6f 6d 6d 61 6e 64 54 65 | 78 74 20 3a 3d 20 27 73 |ommandTe|xt := 's|
|00000a30| 65 6c 65 63 74 20 20 27 | 20 2b 20 43 61 74 61 6c |elect '| + Catal|
|00000a40| 6f 67 2e 46 75 6c 6c 43 | 6f 6c 75 6d 6e 4c 69 73 |og.FullC|olumnLis|
|00000a50| 74 28 27 27 29 20 2b 20 | 27 20 27 20 2b 06 33 20 |t('') + |' ' +.3 |
|00000a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a70| 20 20 20 20 20 20 20 20 | 27 66 72 6f 6d 20 20 20 | |'from |
|00000a80| 20 76 5f 43 61 74 61 6c | 6f 67 49 74 65 6d 20 27 | v_Catal|ogItem '|
|00000a90| 20 2b 06 40 20 20 20 20 | 20 20 20 20 20 20 20 20 | +.@ | |
|00000aa0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 27 77 68 | | 'wh|
|00000ab0| 65 72 65 20 20 20 27 20 | 2b 20 42 75 69 6c 64 46 |ere ' |+ BuildF|
|00000ac0| 69 6c 65 43 6f 6e 64 69 | 74 69 6f 6e 20 2b 20 27 |ileCondi|tion + '|
|00000ad0| 20 27 20 2b 06 27 20 20 | 20 20 20 20 20 20 20 20 | ' +.' | |
|00000ae0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 27 | | '|
|00000af0| 55 4e 49 4f 4e 20 41 4c | 4c 20 27 20 2b 06 48 20 |UNION AL|L ' +.H |
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b10| 20 20 20 20 20 20 20 20 | 27 73 65 6c 65 63 74 20 | |'select |
|00000b20| 20 27 20 2b 20 43 61 74 | 61 6c 6f 67 2e 46 75 6c | ' + Cat|alog.Ful|
|00000b30| 6c 43 6f 6c 75 6d 6e 4c | 69 73 74 28 27 27 29 20 |lColumnL|ist('') |
|00000b40| 2b 20 27 20 27 20 2b 06 | 3a 20 20 20 20 20 20 20 |+ ' ' +.|: |
|00000b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b60| 20 20 27 66 72 6f 6d 20 | 20 20 20 76 5f 43 61 74 | 'from | v_Cat|
|00000b70| 61 6c 6f 67 49 74 65 6d | 56 65 72 73 69 6f 6e 20 |alogItem|Version |
|00000b80| 27 20 2b 06 40 20 20 20 | 20 20 20 20 20 20 20 20 |' +.@ | |
|00000b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 27 77 | | 'w|
|00000ba0| 68 65 72 65 20 20 20 27 | 20 2b 20 42 75 69 6c 64 |here '| + Build|
|00000bb0| 46 69 6c 65 43 6f 6e 64 | 69 74 69 6f 6e 20 2b 20 |FileCond|ition + |
|00000bc0| 27 20 27 20 2b 06 36 20 | 20 20 20 20 20 20 20 20 |' ' +.6 | |
|00000bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000be0| 27 6f 72 64 65 72 20 20 | 20 62 79 20 44 61 74 65 |'order | by Date|
|00000bf0| 54 69 6d 65 53 74 61 6d | 70 20 27 20 2b 06 1c 20 |TimeStam|p ' +.. |
|00000c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000c10| 20 20 20 20 20 20 20 20 | 27 27 3b 06 0f 20 20 20 | |'';.. |
|00000c20| 20 20 20 41 44 6d 2e 4f | 70 65 6e 3b 06 2a 20 20 | ADm.O|pen;.* |
|00000c30| 20 20 20 20 53 65 61 72 | 63 68 52 65 73 75 6c 74 | Sear|chResult|
|00000c40| 2e 49 74 65 6d 73 2e 41 | 64 64 44 61 74 61 53 65 |.Items.A|ddDataSe|
|00000c50| 74 20 28 41 44 6d 29 3b | 06 10 20 20 20 20 20 20 |t (ADm);|.. |
|00000c60| 41 44 6d 2e 43 6c 6f 73 | 65 3b 12 00 00 00 00 06 |ADm.Clos|e;......|
|00000c70| 0f 20 20 20 20 20 20 41 | 44 6d 2e 46 72 65 65 3b |. A|Dm.Free;|
|00000c80| 06 07 20 20 20 20 65 6e | 64 06 08 20 20 20 20 65 |.. en|d.. e|
|00000c90| 6c 73 65 06 09 20 20 20 | 20 62 65 67 69 6e 06 20 |lse.. | begin. |
|00000ca0| 20 20 20 20 20 20 41 44 | 6d 20 3a 3d 20 43 61 74 | AD|m := Cat|
|00000cb0| 61 6c 6f 67 2e 4e 65 77 | 44 61 74 61 53 65 74 3b |alog.New|DataSet;|
|00000cc0| 12 00 00 00 00 06 49 20 | 20 20 20 20 20 41 44 6d |......I | ADm|
|00000cd0| 2e 43 6f 6d 6d 61 6e 64 | 54 65 78 74 20 3a 3d 20 |.Command|Text := |
|00000ce0| 27 73 65 6c 65 63 74 20 | 20 27 20 2b 20 43 61 74 |'select | ' + Cat|
|00000cf0| 61 6c 6f 67 2e 46 75 6c | 6c 43 6f 6c 75 6d 6e 4c |alog.Ful|lColumnL|
|00000d00| 69 73 74 28 27 27 29 20 | 2b 20 27 20 27 20 2b 20 |ist('') |+ ' ' + |
|00000d10| 06 33 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.3 | |
|00000d20| 20 20 20 20 20 20 20 20 | 20 20 20 27 66 72 6f 6d | | 'from|
|00000d30| 20 20 20 20 76 5f 43 61 | 74 61 6c 6f 67 49 74 65 | v_Ca|talogIte|
|00000d40| 6d 20 27 20 2b 06 40 20 | 20 20 20 20 20 20 20 20 |m ' +.@ | |
|00000d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000d60| 27 77 68 65 72 65 20 20 | 20 27 20 2b 20 42 75 69 |'where | ' + Bui|
|00000d70| 6c 64 46 69 6c 65 43 6f | 6e 64 69 74 69 6f 6e 20 |ldFileCo|ndition |
|00000d80| 2b 20 27 20 27 20 2b 06 | 36 20 20 20 20 20 20 20 |+ ' ' +.|6 |
|00000d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000da0| 20 20 27 6f 72 64 65 72 | 20 20 20 62 79 20 44 61 | 'order| by Da|
|00000db0| 74 65 54 69 6d 65 53 74 | 61 6d 70 20 27 20 2b 06 |teTimeSt|amp ' +.|
|00000dc0| 1c 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000dd0| 20 20 20 20 20 20 20 20 | 20 20 27 27 3b 12 00 00 | | '';...|
|00000de0| 00 00 06 0f 20 20 20 20 | 20 20 41 44 6d 2e 4f 70 |.... | ADm.Op|
|00000df0| 65 6e 3b 06 2a 20 20 20 | 20 20 20 53 65 61 72 63 |en;.* | Searc|
|00000e00| 68 52 65 73 75 6c 74 2e | 49 74 65 6d 73 2e 41 64 |hResult.|Items.Ad|
|00000e10| 64 44 61 74 61 53 65 74 | 20 28 41 44 6d 29 3b 06 |dDataSet| (ADm);.|
|00000e20| 10 20 20 20 20 20 20 41 | 44 6d 2e 43 6c 6f 73 65 |. A|Dm.Close|
|00000e30| 3b 12 00 00 00 00 06 0f | 20 20 20 20 20 20 41 44 |;.......| AD|
|00000e40| 6d 2e 46 72 65 65 3b 06 | 08 20 20 20 20 65 6e 64 |m.Free;.|. end|
|00000e50| 3b 06 09 20 20 66 69 6e | 61 6c 6c 79 06 13 20 20 |;.. fin|ally.. |
|00000e60| 20 20 41 43 61 74 49 74 | 65 6d 73 2e 46 72 65 65 | ACatIt|ems.Free|
|00000e70| 3b 06 06 20 20 65 6e 64 | 3b 12 00 00 00 00 06 1d |;.. end|;.......|
|00000e80| 20 20 53 63 72 65 65 6e | 2e 43 75 72 73 6f 72 20 | Screen|.Cursor |
|00000e90| 3a 3d 20 63 72 44 65 66 | 61 75 6c 74 3b 12 00 00 |:= crDef|ault;...|
|00000ea0| 00 00 06 23 20 20 2f 2f | 53 61 79 20 28 53 65 61 |...# //|Say (Sea|
|00000eb0| 72 63 68 52 65 73 75 6c | 74 2e 49 74 65 6d 73 2e |rchResul|t.Items.|
|00000ec0| 43 6f 75 6e 74 29 3b 12 | 00 00 00 00 06 11 20 20 |Count);.|...... |
|00000ed0| 4d 61 69 6e 46 6f 72 6d | 2e 43 6c 6f 73 65 3b 06 |MainForm|.Close;.|
|00000ee0| 04 65 6e 64 3b 12 00 00 | 00 00 12 00 00 00 00 00 |.end;...|........|
|00000ef0| 07 56 65 72 73 69 6f 6e | 06 03 31 2e 30 07 57 69 |.Version|..1.0.Wi|
|00000f00| 74 68 47 55 49 09 08 4d | 6f 64 61 6c 47 55 49 09 |thGUI..M|odalGUI.|
|00000f10| 0b 4c 61 73 74 55 70 64 | 61 74 65 64 05 00 58 6d |.LastUpd|ated..Xm|
|00000f20| af 63 6d ae 9a 0e 40 0a | 50 65 72 73 69 73 74 65 |.cm...@.|Persiste|
|00000f30| 6e 74 08 0a 46 6f 72 6d | 53 74 72 65 61 6d 0a 21 |nt..Form|Stream.!|
|00000f40| 11 00 00 54 50 46 30 0d | 54 53 63 72 69 70 74 44 |...TPF0.|TScriptD|
|00000f50| 65 73 69 67 6e 0f 66 72 | 6d 53 65 61 72 63 68 42 |esign.fr|mSearchB|
|00000f60| 79 46 69 6c 65 04 4c 65 | 66 74 02 00 03 54 6f 70 |yFile.Le|ft...Top|
|00000f70| 02 00 05 57 69 64 74 68 | 03 50 01 06 48 65 69 67 |...Width|.P..Heig|
|00000f80| 68 74 03 ef 00 07 43 61 | 70 74 69 6f 6e 06 13 53 |ht....Ca|ption..S|
|00000f90| 65 61 72 63 68 20 62 79 | 20 46 69 6c 65 20 4e 61 |earch by| File Na|
|00000fa0| 6d 65 05 43 6f 6c 6f 72 | 07 09 63 6c 42 74 6e 46 |me.Color|..clBtnF|
|00000fb0| 61 63 65 0c 46 6f 6e 74 | 2e 43 68 61 72 73 65 74 |ace.Font|.Charset|
|00000fc0| 07 0f 44 45 46 41 55 4c | 54 5f 43 48 41 52 53 45 |..DEFAUL|T_CHARSE|
|00000fd0| 54 0a 46 6f 6e 74 2e 43 | 6f 6c 6f 72 07 0c 63 6c |T.Font.C|olor..cl|
|00000fe0| 57 69 6e 64 6f 77 54 65 | 78 74 0b 46 6f 6e 74 2e |WindowTe|xt.Font.|
|00000ff0| 48 65 69 67 68 74 02 f5 | 09 46 6f 6e 74 2e 4e 61 |Height..|.Font.Na|
|00001000| 6d 65 06 0d 4d 53 20 53 | 61 6e 73 20 53 65 72 69 |me..MS S|ans Seri|
|00001010| 66 0a 46 6f 6e 74 2e 53 | 74 79 6c 65 0b 00 0e 4f |f.Font.S|tyle...O|
|00001020| 6c 64 43 72 65 61 74 65 | 4f 72 64 65 72 08 0a 44 |ldCreate|Order..D|
|00001030| 65 73 69 67 6e 53 69 7a | 65 01 03 40 01 03 cb 00 |esignSiz|e..@....|
|00001040| 00 0d 50 69 78 65 6c 73 | 50 65 72 49 6e 63 68 02 |..Pixels|PerInch.|
|00001050| 60 0a 54 65 78 74 48 65 | 69 67 68 74 02 0d 00 06 |`.TextHe|ight....|
|00001060| 54 4c 61 62 65 6c 06 4c | 61 62 65 6c 31 04 4c 65 |TLabel.L|abel1.Le|
|00001070| 66 74 02 0a 03 54 6f 70 | 02 0b 05 57 69 64 74 68 |ft...Top|...Width|
|00001080| 03 bf 00 06 48 65 69 67 | 68 74 02 0d 07 43 61 70 |....Heig|ht...Cap|
|00001090| 74 69 6f 6e 06 2a 50 61 | 72 74 20 6f 66 20 46 69 |tion.*Pa|rt of Fi|
|000010a0| 6c 65 20 4e 61 6d 65 20 | 28 6f 6e 65 20 63 6f 6e |le Name |(one con|
|000010b0| 64 69 74 69 6f 6e 20 70 | 65 72 20 6c 69 6e 65 29 |dition p|er line)|
|000010c0| 00 00 07 54 42 75 74 74 | 6f 6e 08 70 62 53 65 61 |...TButt|on.pbSea|
|000010d0| 72 63 68 04 4c 65 66 74 | 02 08 03 54 6f 70 03 ae |rch.Left|...Top..|
|000010e0| 00 05 57 69 64 74 68 02 | 4b 06 48 65 69 67 68 74 |..Width.|K.Height|
|000010f0| 02 19 07 43 61 70 74 69 | 6f 6e 06 06 53 65 61 72 |...Capti|on..Sear|
|00001100| 63 68 08 54 61 62 4f 72 | 64 65 72 02 00 00 00 09 |ch.TabOr|der.....|
|00001110| 54 43 68 65 63 6b 42 6f | 78 11 63 62 49 6e 63 6c |TCheckBo|x.cbIncl|
|00001120| 75 64 65 56 65 72 73 69 | 6f 6e 73 04 4c 65 66 74 |udeVersi|ons.Left|
|00001130| 02 58 03 54 6f 70 03 b1 | 00 05 57 69 64 74 68 03 |.X.Top..|..Width.|
|00001140| dd 00 06 48 65 69 67 68 | 74 02 11 07 43 61 70 74 |...Heigh|t...Capt|
|00001150| 69 6f 6e 06 22 49 6e 63 | 6c 75 64 65 20 56 65 72 |ion."Inc|lude Ver|
|00001160| 73 69 6f 6e 73 20 69 6e | 20 73 65 61 72 63 68 20 |sions in| search |
|00001170| 72 65 73 75 6c 74 73 08 | 54 61 62 4f 72 64 65 72 |results.|TabOrder|
|00001180| 02 01 00 00 05 54 4d 65 | 6d 6f 0e 6d 6d 46 69 6c |.....TMe|mo.mmFil|
|00001190| 65 4e 61 6d 65 50 61 72 | 74 04 4c 65 66 74 02 0a |eNamePar|t.Left..|
|000011a0| 03 54 6f 70 02 1d 05 57 | 69 64 74 68 03 34 01 06 |.Top...W|idth.4..|
|000011b0| 48 65 69 67 68 74 02 61 | 07 41 6e 63 68 6f 72 73 |Height.a|.Anchors|
|000011c0| 0b 06 61 6b 4c 65 66 74 | 05 61 6b 54 6f 70 07 61 |..akLeft|.akTop.a|
|000011d0| 6b 52 69 67 68 74 00 08 | 54 61 62 4f 72 64 65 72 |kRight..|TabOrder|
|000011e0| 02 02 00 00 09 54 43 68 | 65 63 6b 42 6f 78 0b 63 |.....TCh|eckBox.c|
|000011f0| 62 41 6c 6c 6f 77 57 69 | 6c 64 04 4c 65 66 74 02 |bAllowWi|ld.Left.|
|00001200| 0a 03 54 6f 70 03 84 00 | 05 57 69 64 74 68 03 32 |..Top...|.Width.2|
|00001210| 01 06 48 65 69 67 68 74 | 02 11 07 41 6e 63 68 6f |..Height|...Ancho|
|00001220| 72 73 0b 06 61 6b 4c 65 | 66 74 05 61 6b 54 6f 70 |rs..akLe|ft.akTop|
|00001230| 07 61 6b 52 69 67 68 74 | 00 07 43 61 70 74 69 6f |.akRight|..Captio|
|00001240| 6e 06 1d 41 6c 6c 6f 77 | 20 77 69 6c 64 63 61 72 |n..Allow| wildcar|
|00001250| 64 73 20 69 6e 20 66 69 | 6c 65 20 6e 61 6d 65 73 |ds in fi|le names|
|00001260| 08 54 61 62 4f 72 64 65 | 72 02 03 00 00 0b 54 69 |.TabOrde|r.....Ti|
|00001270| 64 53 63 72 69 70 74 65 | 72 00 12 53 6f 75 72 63 |dScripte|r..Sourc|
|00001280| 65 43 6f 64 65 2e 53 74 | 72 69 6e 67 73 01 06 48 |eCode.St|rings..H|
|00001290| 70 72 6f 63 65 64 75 72 | 65 20 49 6e 69 74 69 61 |procedur|e Initia|
|000012a0| 6c 69 7a 65 3b 20 20 20 | 20 2f 2f 20 75 73 65 20 |lize; | // use |
|000012b0| 74 68 69 73 20 70 72 6f | 63 65 64 75 72 65 20 66 |this pro|cedure f|
|000012c0| 6f 72 20 67 6c 6f 62 61 | 6c 20 69 6e 69 74 69 61 |or globa|l initia|
|000012d0| 6c 69 7a 61 74 69 6f 6e | 06 05 62 65 67 69 6e 06 |lization|..begin.|
|000012e0| 26 20 20 4d 61 69 6e 46 | 6f 72 6d 2e 50 6f 73 69 |& MainF|orm.Posi|
|000012f0| 74 69 6f 6e 20 3a 3d 20 | 70 6f 53 63 72 65 65 6e |tion := |poScreen|
|00001300| 43 65 6e 74 65 72 3b 06 | 00 06 6a 20 20 6d 6d 46 |Center;.|..j mmF|
|00001310| 69 6c 65 4e 61 6d 65 50 | 61 72 74 2e 4c 69 6e 65 |ileNameP|art.Line|
|00001320| 73 2e 54 65 78 74 20 3a | 3d 20 52 65 61 64 46 72 |s.Text :|= ReadFr|
|00001330| 6f 6d 52 65 67 69 73 74 | 72 79 20 28 27 53 63 72 |omRegist|ry ('Scr|
|00001340| 69 70 74 73 27 2c 20 27 | 53 65 61 72 63 68 46 69 |ipts', '|SearchFi|
|00001350| 6c 65 5c 50 61 72 74 27 | 2c 20 6d 6d 46 69 6c 65 |le\Part'|, mmFile|
|00001360| 4e 61 6d 65 50 61 72 74 | 2e 4c 69 6e 65 73 2e 54 |NamePart|.Lines.T|
|00001370| 65 78 74 29 3b 06 6e 20 | 20 63 62 49 6e 63 6c 75 |ext);.n | cbInclu|
|00001380| 64 65 56 65 72 73 69 6f | 6e 73 2e 43 68 65 63 6b |deVersio|ns.Check|
|00001390| 65 64 20 3a 3d 20 52 65 | 61 64 46 72 6f 6d 52 65 |ed := Re|adFromRe|
|000013a0| 67 69 73 74 72 79 20 28 | 27 53 63 72 69 70 74 73 |gistry (|'Scripts|
|000013b0| 27 2c 20 27 53 65 61 72 | 63 68 46 69 6c 65 5c 56 |', 'Sear|chFile\V|
|000013c0| 65 72 73 69 6f 6e 73 27 | 2c 20 63 62 49 6e 63 6c |ersions'|, cbIncl|
|000013d0| 75 64 65 56 65 72 73 69 | 6f 6e 73 2e 43 68 65 63 |udeVersi|ons.Chec|
|000013e0| 6b 65 64 29 3b 06 69 20 | 20 63 62 41 6c 6c 6f 77 |ked);.i | cbAllow|
|000013f0| 57 69 6c 64 2e 43 68 65 | 63 6b 65 64 20 20 20 20 |Wild.Che|cked |
|00001400| 20 20 20 3a 3d 20 52 65 | 61 64 46 72 6f 6d 52 65 | := Re|adFromRe|
|00001410| 67 69 73 74 72 79 20 28 | 27 53 63 72 69 70 74 73 |gistry (|'Scripts|
|00001420| 27 2c 20 27 53 65 61 72 | 63 68 46 69 6c 65 5c 41 |', 'Sear|chFile\A|
|00001430| 6c 6c 6f 77 57 69 6c 64 | 27 2c 20 63 62 41 6c 6c |llowWild|', cbAll|
|00001440| 6f 77 57 69 6c 64 2e 43 | 68 65 63 6b 65 64 29 3b |owWild.C|hecked);|
|00001450| 06 04 65 6e 64 3b 06 00 | 06 46 70 72 6f 63 65 64 |..end;..|.Fproced|
|00001460| 75 72 65 20 46 69 6e 61 | 6c 69 7a 65 3b 20 20 20 |ure Fina|lize; |
|00001470| 20 20 20 2f 2f 20 75 73 | 65 20 74 68 69 73 20 70 | // us|e this p|
|00001480| 72 6f 63 65 64 75 72 65 | 20 66 6f 72 20 67 6c 6f |rocedure| for glo|
|00001490| 62 61 6c 20 66 69 6e 61 | 6c 69 7a 61 74 69 6f 6e |bal fina|lization|
|000014a0| 06 05 62 65 67 69 6e 06 | 4c 20 20 57 72 69 74 65 |..begin.|L Write|
|000014b0| 54 6f 52 65 67 69 73 74 | 72 79 20 28 27 53 63 72 |ToRegist|ry ('Scr|
|000014c0| 69 70 74 73 27 2c 20 27 | 53 65 61 72 63 68 46 69 |ipts', '|SearchFi|
|000014d0| 6c 65 5c 50 61 72 74 27 | 2c 20 6d 6d 46 69 6c 65 |le\Part'|, mmFile|
|000014e0| 4e 61 6d 65 50 61 72 74 | 2e 4c 69 6e 65 73 2e 54 |NamePart|.Lines.T|
|000014f0| 65 78 74 29 3b 06 50 20 | 20 57 72 69 74 65 54 6f |ext);.P | WriteTo|
|00001500| 52 65 67 69 73 74 72 79 | 20 28 27 53 63 72 69 70 |Registry| ('Scrip|
|00001510| 74 73 27 2c 20 27 53 65 | 61 72 63 68 46 69 6c 65 |ts', 'Se|archFile|
|00001520| 5c 56 65 72 73 69 6f 6e | 73 27 2c 20 63 62 49 6e |\Version|s', cbIn|
|00001530| 63 6c 75 64 65 56 65 72 | 73 69 6f 6e 73 2e 43 68 |cludeVer|sions.Ch|
|00001540| 65 63 6b 65 64 29 3b 06 | 4b 20 20 57 72 69 74 65 |ecked);.|K Write|
|00001550| 54 6f 52 65 67 69 73 74 | 72 79 20 28 27 53 63 72 |ToRegist|ry ('Scr|
|00001560| 69 70 74 73 27 2c 20 27 | 53 65 61 72 63 68 46 69 |ipts', '|SearchFi|
|00001570| 6c 65 5c 41 6c 6c 6f 77 | 57 69 6c 64 27 2c 20 63 |le\Allow|Wild', c|
|00001580| 62 41 6c 6c 6f 77 57 69 | 6c 64 2e 43 68 65 63 6b |bAllowWi|ld.Check|
|00001590| 65 64 29 3b 06 04 65 6e | 64 3b 06 00 06 31 66 75 |ed);..en|d;...1fu|
|000015a0| 6e 63 74 69 6f 6e 20 50 | 72 65 70 61 72 65 46 6f |nction P|repareFo|
|000015b0| 72 53 51 4c 20 28 41 53 | 74 72 69 6e 67 3a 20 53 |rSQL (AS|tring: S|
|000015c0| 74 72 69 6e 67 29 3a 20 | 53 74 72 69 6e 67 3b 06 |tring): |String;.|
|000015d0| 05 62 65 67 69 6e 06 2b | 20 20 72 65 73 75 6c 74 |.begin.+| result|
|000015e0| 20 3a 3d 20 53 74 72 54 | 72 61 6e 28 41 53 74 72 | := StrT|ran(AStr|
|000015f0| 69 6e 67 2c 20 27 27 27 | 27 2c 20 27 27 27 27 27 |ing, '''|', '''''|
|00001600| 27 29 3b 06 00 06 23 20 | 20 69 66 20 28 6e 6f 74 |');...# | if (not|
|00001610| 20 63 62 41 6c 6c 6f 77 | 57 69 6c 64 2e 43 68 65 | cbAllow|Wild.Che|
|00001620| 63 6b 65 64 29 20 74 68 | 65 6e 06 07 20 20 62 65 |cked) th|en.. be|
|00001630| 67 69 6e 06 1f 20 20 20 | 20 69 66 20 43 61 74 61 |gin.. | if Cata|
|00001640| 6c 6f 67 2e 49 73 53 51 | 4c 53 65 72 76 65 72 20 |log.IsSQ|LServer |
|00001650| 74 68 65 6e 06 09 20 20 | 20 20 62 65 67 69 6e 06 |then.. | begin.|
|00001660| 2c 20 20 20 20 20 20 72 | 65 73 75 6c 74 20 3a 3d |, r|esult :=|
|00001670| 20 53 74 72 54 72 61 6e | 28 72 65 73 75 6c 74 2c | StrTran|(result,|
|00001680| 20 27 5f 27 2c 20 27 5b | 5f 5d 27 29 3b 06 2c 20 | '_', '[|_]');., |
|00001690| 20 20 20 20 20 72 65 73 | 75 6c 74 20 3a 3d 20 53 | res|ult := S|
|000016a0| 74 72 54 72 61 6e 28 72 | 65 73 75 6c 74 2c 20 27 |trTran(r|esult, '|
|000016b0| 25 27 2c 20 27 5b 25 5d | 27 29 3b 06 2c 20 20 20 |%', '[%]|');., |
|000016c0| 20 20 20 72 65 73 75 6c | 74 20 3a 3d 20 53 74 72 | resul|t := Str|
|000016d0| 54 72 61 6e 28 72 65 73 | 75 6c 74 2c 20 27 5e 27 |Tran(res|ult, '^'|
|000016e0| 2c 20 27 5b 5e 5d 27 29 | 3b 06 07 20 20 20 20 65 |, '[^]')|;.. e|
|000016f0| 6e 64 06 08 20 20 20 20 | 65 6c 73 65 06 09 20 20 |nd.. |else.. |
|00001700| 20 20 62 65 67 69 6e 06 | 2a 20 20 20 20 20 20 72 | begin.|* r|
|00001710| 65 73 75 6c 74 20 3a 3d | 20 53 74 72 54 72 61 6e |esult :=| StrTran|
|00001720| 28 72 65 73 75 6c 74 2c | 20 27 5f 27 2c 20 27 5f |(result,| '_', '_|
|00001730| 27 29 3b 06 2b 20 20 20 | 20 20 20 72 65 73 75 6c |');.+ | resul|
|00001740| 74 20 3a 3d 20 53 74 72 | 54 72 61 6e 28 72 65 73 |t := Str|Tran(res|
|00001750| 75 6c 74 2c 20 27 25 27 | 2c 20 27 25 25 27 29 3b |ult, '%'|, '%%');|
|00001760| 06 08 20 20 20 20 65 6e | 64 3b 06 06 20 20 65 6e |.. en|d;.. en|
|00001770| 64 3b 06 04 65 6e 64 3b | 06 00 06 24 66 75 6e 63 |d;..end;|...$func|
|00001780| 74 69 6f 6e 20 42 75 69 | 6c 64 46 69 6c 65 43 6f |tion Bui|ldFileCo|
|00001790| 6e 64 69 74 69 6f 6e 3a | 20 53 74 72 69 6e 67 3b |ndition:| String;|
|000017a0| 06 03 76 61 72 06 0d 20 | 20 69 3a 20 49 6e 74 65 |..var.. | i: Inte|
|000017b0| 67 65 72 3b 06 05 62 65 | 67 69 6e 06 0f 20 20 72 |ger;..be|gin.. r|
|000017c0| 65 73 75 6c 74 20 3a 3d | 20 27 27 3b 06 00 06 31 |esult :=| '';...1|
|000017d0| 20 20 66 6f 72 20 69 20 | 3a 3d 20 30 20 74 6f 20 | for i |:= 0 to |
|000017e0| 6d 6d 46 69 6c 65 4e 61 | 6d 65 50 61 72 74 2e 4c |mmFileNa|mePart.L|
|000017f0| 69 6e 65 73 2e 43 6f 75 | 6e 74 20 2d 20 31 20 64 |ines.Cou|nt - 1 d|
|00001800| 6f 06 07 20 20 62 65 67 | 69 6e 06 37 20 20 20 20 |o.. beg|in.7 |
|00001810| 69 66 20 54 72 69 6d 28 | 6d 6d 46 69 6c 65 4e 61 |if Trim(|mmFileNa|
|00001820| 6d 65 50 61 72 74 2e 4c | 69 6e 65 73 2e 53 74 72 |mePart.L|ines.Str|
|00001830| 69 6e 67 73 5b 69 5d 29 | 20 3c 3e 20 27 27 20 74 |ings[i])| <> '' t|
|00001840| 68 65 6e 06 8c 20 20 20 | 20 20 20 72 65 73 75 6c |hen.. | resul|
|00001850| 74 20 3a 3d 20 69 69 66 | 20 28 72 65 73 75 6c 74 |t := iif| (result|
|00001860| 20 3d 20 27 27 2c 20 27 | 27 2c 20 72 65 73 75 6c | = '', '|', resul|
|00001870| 74 20 2b 20 27 20 4f 52 | 20 27 29 20 2b 20 27 46 |t + ' OR| ') + 'F|
|00001880| 75 6c 6c 46 69 6c 65 4e | 61 6d 65 20 6c 69 6b 65 |ullFileN|ame like|
|00001890| 20 27 27 25 27 20 2b 20 | 50 72 65 70 61 72 65 46 | ''%' + |PrepareF|
|000018a0| 6f 72 53 51 4c 20 28 6d | 6d 46 69 6c 65 4e 61 6d |orSQL (m|mFileNam|
|000018b0| 65 50 61 72 74 2e 4c 69 | 6e 65 73 2e 53 74 72 69 |ePart.Li|nes.Stri|
|000018c0| 6e 67 73 5b 69 5d 29 20 | 2b 20 27 25 27 27 20 27 |ngs[i]) |+ '%'' '|
|000018d0| 3b 06 06 20 20 65 6e 64 | 3b 06 04 65 6e 64 3b 06 |;.. end|;..end;.|
|000018e0| 00 06 18 70 72 6f 63 65 | 64 75 72 65 20 70 62 53 |...proce|dure pbS|
|000018f0| 65 61 72 63 68 43 6c 69 | 63 6b 3b 06 03 76 61 72 |earchCli|ck;..var|
|00001900| 06 1b 20 20 41 43 61 74 | 49 74 65 6d 73 3a 20 54 |.. ACat|Items: T|
|00001910| 43 61 74 61 6c 6f 67 49 | 74 65 6d 73 3b 06 1b 20 |CatalogI|tems;.. |
|00001920| 20 41 44 6d 3a 20 54 44 | 42 58 4f 4d 43 6c 69 65 | ADm: TD|BXOMClie|
|00001930| 6e 74 44 61 74 61 53 65 | 74 3b 06 05 62 65 67 69 |ntDataSe|t;..begi|
|00001940| 6e 06 1f 20 20 53 63 72 | 65 65 6e 2e 43 75 72 73 |n.. Scr|een.Curs|
|00001950| 6f 72 20 3a 3d 20 63 72 | 48 6f 75 72 47 6c 61 73 |or := cr|HourGlas|
|00001960| 73 3b 06 00 06 36 20 20 | 41 43 61 74 49 74 65 6d |s;...6 |ACatItem|
|00001970| 73 20 3a 3d 20 54 43 61 | 74 61 6c 6f 67 49 74 65 |s := TCa|talogIte|
|00001980| 6d 73 2e 43 72 65 61 74 | 65 28 54 43 61 74 61 6c |ms.Creat|e(TCatal|
|00001990| 6f 67 49 74 65 6d 2c 20 | 27 27 29 3b 06 05 20 20 |ogItem, |'');.. |
|000019a0| 74 72 79 06 30 20 20 20 | 20 41 43 61 74 49 74 65 |try.0 | ACatIte|
|000019b0| 6d 73 2e 4c 61 73 74 53 | 6f 72 74 20 3a 3d 20 53 |ms.LastS|ort := S|
|000019c0| 65 61 72 63 68 52 65 73 | 75 6c 74 2e 4c 61 73 74 |earchRes|ult.Last|
|000019d0| 53 6f 72 74 3b 06 3a 20 | 20 20 20 41 43 61 74 49 |Sort;.: | ACatI|
|000019e0| 74 65 6d 73 2e 4c 61 73 | 74 53 6f 72 74 4f 72 64 |tems.Las|tSortOrd|
|000019f0| 65 72 20 3a 3d 20 53 65 | 61 72 63 68 52 65 73 75 |er := Se|archResu|
|00001a00| 6c 74 2e 4c 61 73 74 53 | 6f 72 74 4f 72 64 65 72 |lt.LastS|ortOrder|
|00001a10| 3b 06 00 06 25 20 20 20 | 20 69 66 20 63 62 49 6e |;...% | if cbIn|
|00001a20| 63 6c 75 64 65 56 65 72 | 73 69 6f 6e 73 2e 43 68 |cludeVer|sions.Ch|
|00001a30| 65 63 6b 65 64 20 74 68 | 65 6e 06 09 20 20 20 20 |ecked th|en.. |
|00001a40| 62 65 67 69 6e 06 20 20 | 20 20 20 20 20 41 44 6d |begin. | ADm|
|00001a50| 20 3a 3d 20 43 61 74 61 | 6c 6f 67 2e 4e 65 77 44 | := Cata|log.NewD|
|00001a60| 61 74 61 53 65 74 3b 06 | 00 06 48 20 20 20 20 20 |ataSet;.|..H |
|00001a70| 20 41 44 6d 2e 43 6f 6d | 6d 61 6e 64 54 65 78 74 | ADm.Com|mandText|
|00001a80| 20 3a 3d 20 27 73 65 6c | 65 63 74 20 20 27 20 2b | := 'sel|ect ' +|
|00001a90| 20 43 61 74 61 6c 6f 67 | 2e 46 75 6c 6c 43 6f 6c | Catalog|.FullCol|
|00001aa0| 75 6d 6e 4c 69 73 74 28 | 27 27 29 20 2b 20 27 20 |umnList(|'') + ' |
|00001ab0| 27 20 2b 06 33 20 20 20 | 20 20 20 20 20 20 20 20 |' +.3 | |
|00001ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 27 66 | | 'f|
|00001ad0| 72 6f 6d 20 20 20 20 76 | 5f 43 61 74 61 6c 6f 67 |rom v|_Catalog|
|00001ae0| 49 74 65 6d 20 27 20 2b | 06 40 20 20 20 20 20 20 |Item ' +|.@ |
|00001af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b00| 20 20 20 27 77 68 65 72 | 65 20 20 20 27 20 2b 20 | 'wher|e ' + |
|00001b10| 42 75 69 6c 64 46 69 6c | 65 43 6f 6e 64 69 74 69 |BuildFil|eConditi|
|00001b20| 6f 6e 20 2b 20 27 20 27 | 20 2b 06 27 20 20 20 20 |on + ' '| +.' |
|00001b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b40| 20 20 20 20 20 27 55 4e | 49 4f 4e 20 41 4c 4c 20 | 'UN|ION ALL |
|00001b50| 27 20 2b 06 48 20 20 20 | 20 20 20 20 20 20 20 20 |' +.H | |
|00001b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 27 73 | | 's|
|00001b70| 65 6c 65 63 74 20 20 27 | 20 2b 20 43 61 74 61 6c |elect '| + Catal|
|00001b80| 6f 67 2e 46 75 6c 6c 43 | 6f 6c 75 6d 6e 4c 69 73 |og.FullC|olumnLis|
|00001b90| 74 28 27 27 29 20 2b 20 | 27 20 27 20 2b 06 3a 20 |t('') + |' ' +.: |
|00001ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bb0| 20 20 20 20 20 20 20 20 | 27 66 72 6f 6d 20 20 20 | |'from |
|00001bc0| 20 76 5f 43 61 74 61 6c | 6f 67 49 74 65 6d 56 65 | v_Catal|ogItemVe|
|00001bd0| 72 73 69 6f 6e 20 27 20 | 2b 06 40 20 20 20 20 20 |rsion ' |+.@ |
|00001be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001bf0| 20 20 20 20 27 77 68 65 | 72 65 20 20 20 27 20 2b | 'whe|re ' +|
|00001c00| 20 42 75 69 6c 64 46 69 | 6c 65 43 6f 6e 64 69 74 | BuildFi|leCondit|
|00001c10| 69 6f 6e 20 2b 20 27 20 | 27 20 2b 06 36 20 20 20 |ion + ' |' +.6 |
|00001c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c30| 20 20 20 20 20 20 27 6f | 72 64 65 72 20 20 20 62 | 'o|rder b|
|00001c40| 79 20 44 61 74 65 54 69 | 6d 65 53 74 61 6d 70 20 |y DateTi|meStamp |
|00001c50| 27 20 2b 06 1c 20 20 20 | 20 20 20 20 20 20 20 20 |' +.. | |
|00001c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 27 27 | | ''|
|00001c70| 3b 06 0f 20 20 20 20 20 | 20 41 44 6d 2e 4f 70 65 |;.. | ADm.Ope|
|00001c80| 6e 3b 06 2a 20 20 20 20 | 20 20 53 65 61 72 63 68 |n;.* | Search|
|00001c90| 52 65 73 75 6c 74 2e 49 | 74 65 6d 73 2e 41 64 64 |Result.I|tems.Add|
|00001ca0| 44 61 74 61 53 65 74 20 | 28 41 44 6d 29 3b 06 10 |DataSet |(ADm);..|
|00001cb0| 20 20 20 20 20 20 41 44 | 6d 2e 43 6c 6f 73 65 3b | AD|m.Close;|
|00001cc0| 06 00 06 0f 20 20 20 20 | 20 20 41 44 6d 2e 46 72 |.... | ADm.Fr|
|00001cd0| 65 65 3b 06 07 20 20 20 | 20 65 6e 64 06 08 20 20 |ee;.. | end.. |
|00001ce0| 20 20 65 6c 73 65 06 09 | 20 20 20 20 62 65 67 69 | else..| begi|
|00001cf0| 6e 06 20 20 20 20 20 20 | 20 41 44 6d 20 3a 3d 20 |n. | ADm := |
|00001d00| 43 61 74 61 6c 6f 67 2e | 4e 65 77 44 61 74 61 53 |Catalog.|NewDataS|
|00001d10| 65 74 3b 06 00 06 49 20 | 20 20 20 20 20 41 44 6d |et;...I | ADm|
|00001d20| 2e 43 6f 6d 6d 61 6e 64 | 54 65 78 74 20 3a 3d 20 |.Command|Text := |
|00001d30| 27 73 65 6c 65 63 74 20 | 20 27 20 2b 20 43 61 74 |'select | ' + Cat|
|00001d40| 61 6c 6f 67 2e 46 75 6c | 6c 43 6f 6c 75 6d 6e 4c |alog.Ful|lColumnL|
|00001d50| 69 73 74 28 27 27 29 20 | 2b 20 27 20 27 20 2b 20 |ist('') |+ ' ' + |
|00001d60| 06 33 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.3 | |
|00001d70| 20 20 20 20 20 20 20 20 | 20 20 20 27 66 72 6f 6d | | 'from|
|00001d80| 20 20 20 20 76 5f 43 61 | 74 61 6c 6f 67 49 74 65 | v_Ca|talogIte|
|00001d90| 6d 20 27 20 2b 06 40 20 | 20 20 20 20 20 20 20 20 |m ' +.@ | |
|00001da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001db0| 27 77 68 65 72 65 20 20 | 20 27 20 2b 20 42 75 69 |'where | ' + Bui|
|00001dc0| 6c 64 46 69 6c 65 43 6f | 6e 64 69 74 69 6f 6e 20 |ldFileCo|ndition |
|00001dd0| 2b 20 27 20 27 20 2b 06 | 36 20 20 20 20 20 20 20 |+ ' ' +.|6 |
|00001de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001df0| 20 20 27 6f 72 64 65 72 | 20 20 20 62 79 20 44 61 | 'order| by Da|
|00001e00| 74 65 54 69 6d 65 53 74 | 61 6d 70 20 27 20 2b 06 |teTimeSt|amp ' +.|
|00001e10| 1c 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001e20| 20 20 20 20 20 20 20 20 | 20 20 27 27 3b 06 00 06 | | '';...|
|00001e30| 0f 20 20 20 20 20 20 41 | 44 6d 2e 4f 70 65 6e 3b |. A|Dm.Open;|
|00001e40| 06 2a 20 20 20 20 20 20 | 53 65 61 72 63 68 52 65 |.* |SearchRe|
|00001e50| 73 75 6c 74 2e 49 74 65 | 6d 73 2e 41 64 64 44 61 |sult.Ite|ms.AddDa|
|00001e60| 74 61 53 65 74 20 28 41 | 44 6d 29 3b 06 10 20 20 |taSet (A|Dm);.. |
|00001e70| 20 20 20 20 41 44 6d 2e | 43 6c 6f 73 65 3b 06 00 | ADm.|Close;..|
|00001e80| 06 0f 20 20 20 20 20 20 | 41 44 6d 2e 46 72 65 65 |.. |ADm.Free|
|00001e90| 3b 06 08 20 20 20 20 65 | 6e 64 3b 06 09 20 20 66 |;.. e|nd;.. f|
|00001ea0| 69 6e 61 6c 6c 79 06 13 | 20 20 20 20 41 43 61 74 |inally..| ACat|
|00001eb0| 49 74 65 6d 73 2e 46 72 | 65 65 3b 06 06 20 20 65 |Items.Fr|ee;.. e|
|00001ec0| 6e 64 3b 06 00 06 1d 20 | 20 53 63 72 65 65 6e 2e |nd;.... | Screen.|
|00001ed0| 43 75 72 73 6f 72 20 3a | 3d 20 63 72 44 65 66 61 |Cursor :|= crDefa|
|00001ee0| 75 6c 74 3b 06 00 06 23 | 20 20 2f 2f 53 61 79 20 |ult;...#| //Say |
|00001ef0| 28 53 65 61 72 63 68 52 | 65 73 75 6c 74 2e 49 74 |(SearchR|esult.It|
|00001f00| 65 6d 73 2e 43 6f 75 6e | 74 29 3b 06 00 06 11 20 |ems.Coun|t);.... |
|00001f10| 20 4d 61 69 6e 46 6f 72 | 6d 2e 43 6c 6f 73 65 3b | MainFor|m.Close;|
|00001f20| 06 04 65 6e 64 3b 06 00 | 06 00 00 10 53 61 76 65 |..end;..|....Save|
|00001f30| 43 6f 6d 70 69 6c 65 64 | 43 6f 64 65 08 10 53 68 |Compiled|Code..Sh|
|00001f40| 6f 72 74 42 6f 6f 6c 65 | 61 6e 45 76 61 6c 08 1d |ortBoole|anEval..|
|00001f50| 4c 69 62 4f 70 74 69 6f | 6e 73 2e 53 65 61 72 63 |LibOptio|ns.Searc|
|00001f60| 68 50 61 74 68 2e 53 74 | 72 69 6e 67 73 01 06 09 |hPath.St|rings...|
|00001f70| 24 28 43 55 52 44 49 52 | 29 06 09 24 28 41 50 50 |$(CURDIR|)..$(APP|
|00001f80| 44 49 52 29 06 2a 44 3a | 5c 69 64 46 4f 58 50 72 |DIR).*D:|\idFOXPr|
|00001f90| 6f 6a 65 63 74 65 6e 5c | 49 6d 61 67 65 42 72 6f |ojecten\|ImageBro|
|00001fa0| 77 73 65 72 5c 53 63 72 | 69 70 74 4c 69 62 73 5c |wser\Scr|iptLibs\|
|00001fb0| 00 18 4c 69 62 4f 70 74 | 69 6f 6e 73 2e 53 6f 75 |..LibOpt|ions.Sou|
|00001fc0| 72 63 65 46 69 6c 65 45 | 78 74 06 04 2e 70 73 63 |rceFileE|xt...psc|
|00001fd0| 1a 4c 69 62 4f 70 74 69 | 6f 6e 73 2e 43 6f 6d 70 |.LibOpti|ons.Comp|
|00001fe0| 69 6c 65 64 46 69 6c 65 | 45 78 74 06 04 2e 70 63 |iledFile|Ext...pc|
|00001ff0| 75 19 4c 69 62 4f 70 74 | 69 6f 6e 73 2e 55 73 65 |u.LibOpt|ions.Use|
|00002000| 53 63 72 69 70 74 46 69 | 6c 65 73 09 11 43 61 6c |ScriptFi|les..Cal|
|00002010| 6c 45 78 65 63 48 6f 6f | 6b 45 76 65 6e 74 08 00 |lExecHoo|kEvent..|
|00002020| 00 0d 54 53 53 45 76 65 | 6e 74 53 61 76 65 72 00 |..TSSEve|ntSaver.|
|00002030| 0e 53 63 72 69 70 74 65 | 72 45 76 65 6e 74 73 06 |.Scripte|rEvents.|
|00002040| 20 70 62 53 65 61 72 63 | 68 2e 4f 6e 43 6c 69 63 | pbSearc|h.OnClic|
|00002050| 6b 3d 70 62 53 65 61 72 | 63 68 43 6c 69 63 6b 0d |k=pbSear|chClick.|
|00002060| 0a 00 00 00 00 00 0c 4d | 61 6e 75 61 6c 46 6f 72 |.......M|anualFor|
|00002070| 6d 61 74 07 07 73 6d 66 | 54 65 78 74 14 53 63 72 |mat..smf|Text.Scr|
|00002080| 69 70 74 52 65 73 6f 75 | 72 63 65 73 2e 47 55 49 |iptResou|rces.GUI|
|00002090| 44 06 26 7b 30 34 38 33 | 36 41 36 44 2d 45 35 31 |D.&{0483|6A6D-E51|
|000020a0| 34 2d 34 32 39 35 2d 39 | 44 45 38 2d 45 35 30 30 |4-4295-9|DE8-E500|
|000020b0| 37 38 37 31 45 32 32 42 | 7d 0f 53 63 72 69 70 74 |7871E22B|}.Script|
|000020c0| 52 65 73 6f 75 72 63 65 | 73 0e 00 07 56 65 72 73 |Resource|s...Vers|
|000020d0| 69 6f 6e 06 03 31 2e 31 | 00 00 0b 47 72 6f 75 70 |ion..1.1|...Group|
|000020e0| 73 2e 47 55 49 44 06 26 | 7b 43 36 37 31 46 35 41 |s.GUID.&|{C671F5A|
|000020f0| 38 2d 36 38 33 45 2d 34 | 32 42 42 2d 38 33 45 45 |8-683E-4|2BB-83EE|
|00002100| 2d 46 37 32 33 31 41 34 | 42 33 45 44 35 7d 06 47 |-F7231A4|B3ED5}.G|
|00002110| 72 6f 75 70 73 0e 00 00 | 00 |roups...|. |
+--------+-------------------------+-------------------------+--------+--------+